package jgl.vajra.operator.part.order.activity;

import android.content.Intent;

import jgl.vajra.operator.R;
import jgl.vajra.operator.bean.OrderEvaluateBean;
import jgl.vajra.operator.databinding.ActivityOrderEvaluateBinding;
import jgl.vajra.operator.manager.IntentManager;
import jgl.vajra.operator.part.order.contract.OrderEvaluateContract;
import jgl.vajra.operator.part.order.viewModel.OrderEvaluateViewModel;
import jgl.vajra.operator.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.operator.widget.mvvm.view.BaseMVVMActivity;

@CreateViewModel(OrderEvaluateViewModel.class)
public class OrderEvaluateActivity extends BaseMVVMActivity<OrderEvaluateViewModel, ActivityOrderEvaluateBinding> implements OrderEvaluateContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.activity_order_evaluate;
    }

    @Override
    public void initView() {
        super.initView();
        mBinding.setView(this);
        OrderEvaluateBean bean = new OrderEvaluateBean(true);
        mBinding.setData(bean);
    }

    //带
    @Override
    public void onBelt() {
        OrderEvaluateBean bean = new OrderEvaluateBean(true);
        mBinding.setData(bean);
    }

    //不带
    @Override
    public void onNoBelt() {
        OrderEvaluateBean bean = new OrderEvaluateBean(false);
        mBinding.setData(bean);
    }

    //确定
    @Override
    public void onDetermine() {
        IntentManager.toCommentStateActivity(this);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        mBinding.multiPicView.onActivityResult(requestCode, resultCode, data);
    }
}
